package com.hsnn.medstgmini.sys.information.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="sys_message_log")
public class SysMessageLog implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="log_id",length=36)
	private String logId;
	
	@Column(name="message_id",length=36)
	private String messageId;//消息ID
	
	@Column(name="father_id",length=36)
	private String fatherId;//父级消息id
	
	@Column(name="acct_type",length=4)
	private Integer acctType;//账户类型1:中心、2:生产企业、3:配送企业、4:医疗机构、5:专家、6:卫生局
	
	@Column(name="org_id",length=36)
	private String orgId;//所属机构ID
	
	@Column(name="org_name",length=512)
	private String orgName;//所属机构名称
	
	@Column(name="send_user",length=36)
	private String sendUser;//发送人
	
	@Column(name="rece_user",length=36)
	private String receUser;//接收人
	
	@Column(name="title",length=128)
	private String title;//消息标题
	
	@Column(name="content",length=4000)
	private String content;//消息内容
	
	@Column(name="type",length=4)
	private Integer type;//消息类型1.系统2.用户
	
	@Column(name="status",length=4)
	private Integer status;//状态0新建1.发送2删除3彻底删除
	
	@Column(name="delivery_time")
	private String deliveryTime;//定时发送时间
	
	@Column(name="send_datetime")
	private Date sendDatetime;//发送时间
	
	@Column(name="read_datetime")
	private Date readDatetime;//阅读时间
	
	@Column(name="has_read",length=4)
	private Integer hasRead;//是否已阅读0否1是
	
	@Column(name="upd_user",length=36)
	private String updUser;//更新人
	
	@Column(name="upd_datetime")
	private Date updDatetime;//更新时间

	
	
	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String getFatherId() {
		return fatherId;
	}

	public void setFatherId(String fatherId) {
		this.fatherId = fatherId;
	}

	public Integer getAcctType() {
		return acctType;
	}

	public void setAcctType(Integer acctType) {
		this.acctType = acctType;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getSendUser() {
		return sendUser;
	}

	public void setSendUser(String sendUser) {
		this.sendUser = sendUser;
	}

	public String getReceUser() {
		return receUser;
	}

	public void setReceUser(String receUser) {
		this.receUser = receUser;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDeliveryTime() {
		return deliveryTime;
	}

	public void setDeliveryTime(String deliveryTime) {
		this.deliveryTime = deliveryTime;
	}

	public Date getSendDatetime() {
		return sendDatetime;
	}

	public void setSendDatetime(Date sendDatetime) {
		this.sendDatetime = sendDatetime;
	}

	public Date getReadDatetime() {
		return readDatetime;
	}

	public void setReadDatetime(Date readDatetime) {
		this.readDatetime = readDatetime;
	}

	public Integer getHasRead() {
		return hasRead;
	}

	public void setHasRead(Integer hasRead) {
		this.hasRead = hasRead;
	}

	public String getUpdUser() {
		return updUser;
	}

	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	public Date getUpdDatetime() {
		return updDatetime;
	}

	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}
	
}
